from django.contrib import admin
from .models import UserProfileModel, EmailVerifyRecord, BannerModel

@admin.register(UserProfileModel)
class UserprofileAdmin(admin.ModelAdmin):
    list_display = ['id', 'username', 'nick_name', 'gender', 'mobile', 'is_superuser', 'is_active']
    list_display_links = ['username']


@admin.register(EmailVerifyRecord)
class EmailVerifyRecordAdmin(admin.ModelAdmin):
    list_display = ['id', 'code', 'email', 'send_type', 'send_time']
    list_display_links = ['code']


@admin.register(BannerModel)
class BannerAdmin(admin.ModelAdmin):
    list_display = ['id', 'title', 'url', 'index', 'add_time']
    list_display_links = ['title']